#!/usr/bin/env bash

APP=iccp-backend
JAR_FILE=iccp-1.0.0-SNAPSHOT.jar

if [ -f "$APP.pid" ]; then
    kill $(cat $APP.pid)
fi

java -jar $JAR_FILE --spring.profiles.active=dev --server.port=9090 > /dev/null 2>&1 &

echo $! > $APP.pid
